@layout("/common/_container.html",{js:["/assets/goods/goods.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">商品表管理</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <input id="condition" class="layui-input" type="text" placeholder="全称或简称，请勿输入符号"/>
                            </div>
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
                                <button id="btnSync" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>同步商品至本地</button>
                                <button id="btnUpDate" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>上传至ERP</button>
                                <button id="batchShelves" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>批量上架</button>
                                <button id="batchOffTheShelf" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>批量下架</button>
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="goodsTable" lay-filter="goodsTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">
   <!-- <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">SKU</a>-->
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">设置</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
   <a class="layui-btn layui-btn-danger layui-btn-xs"style="background-color: #01AAED" lay-event="addHotGood">轮播图片</a>
   <a class="layui-btn layui-btn-danger layui-btn-xs"style="background-color: #01AAED" lay-event="addRecommend">推荐产品</a>
   <a class="layui-btn layui-btn-danger layui-btn-xs"style="background-color: #01AAED" lay-event="pictureVideo">上传图文或视频</a>
   <a class="layui-btn layui-btn-danger layui-btn-xs"style="background-color: #01AAED" lay-event="addsRecommend">添加到种草</a>
</script>

<script type="text/html" id="statusTpls">
    <input type="checkbox" lay-filter="status" value="{{d.id}}" lay-skin="switch" lay-text="上架|下架" {{d.state=='1'?'checked':''}} />
</script>

<script type="text/html" id="statusTplss">
    <input type="checkbox" lay-filter="statuss" value="{{d.id}}" lay-skin="switch" lay-text="开启|关闭" {{d.integralState=='1'?'checked':''}} />
</script>

@}